package com.linkhub.oms.dao.mpservice;

import com.baomidou.mybatisplus.extension.service.IService;
import com.linkhub.oms.entity.CountryPartitionEntity;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 国家分区表 服务类
 * </p>
 *
 * @author Frank
 * @since 2024-06-23
 */
public interface ICountryPartitionService extends IService<CountryPartitionEntity> {
    /**
     * 根据国家编码查询
     *
     * @param countryCode countryCode
     * @return List<CountryPartitionEntity>
     */
    List<CountryPartitionEntity> listByCountryCode(String countryCode);

    /**
     * 根据国家编码查询
     *
     * @param countryCodes countryCodes
     * @return map<countryCode, List < CountryPartitionEntity>>
     */
    Map<String, List<CountryPartitionEntity>> listByCountryCodes(List<String> countryCodes);

    /**
     * 查询国家是否有分区
     * @param countryCode
     * @return
     */
    boolean existPartitionOfCountry(String countryCode);
}
